<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<script>
function addorder()
{
	$('#addstorageform').modal('show');	
}
</script>
<title>收货对帐历史</title>
<body class="withvernav">
<style type="text/css">
.stdtable tbody tr td{padding:4px 5px;}
</style>
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">收件对帐列表 </h1>
    <div class="menulist">
        <ul class="profile_summary">
         	<li><a href="/factory/ajaxbutton?op=goodsReciveCount"  target="_blank"><span>收货对帐差异统帐数据</span></a></li>
        </ul>
    </div>
</div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
          <!--搜索栏-->
           <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
    <form class="stdform stdform2" method="get" action="?" >
      <div class="tableoptions">
      <a href="/factory/ajaxbutton?op=sendGoodsCheckForm" class="stdbtn btn_red" target="_blank"><span>开始出货对帐</span></a> 
      <input type="hidden" name="op" id="op" value="goodsReceiptList">
      工厂：<select name="factory" id="factory">
      	<option value="">选择工厂</option>
		  <option value="工厂1" {{if $factory=='工厂1'}} selected{{/if}}>工厂1</option>
   		  <option value="工厂2" {{if $factory=='工厂2'}} selected{{/if}}>工厂2</option>
        </select>&nbsp;出货单时间段：
       <input type="text"  name="starttime" value="{{$starttime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       &nbsp;
        <button class="btn btn_orange btn_search radius50">Search</button>
      </div>
    </form>
    <!--搜索栏结束-->

             <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr class="tableheader">
                <th class="head1">工厂</th>
               <th class="head1">对帐名称</th>
                <th class="head1">工厂出货总额</th>
                <th class="head1">出货/收货件数</th>
                <th class="head1">差异件数/差异金额</th>
                <th class="head1">已核对金额</th>
                <th class="head1">对帐时间</th>
                <th class="head1">操作人</th>
                <th class="head1">操作</th>
              </tr>
            </thead>
          
             {{foreach from=$orderlist item=detail key=key}}
                <tr>
                  <td>{{$detail.factory}}</td>
                 <td>{{$detail.check_day}}出货单对帐信息</td>
                 <td>{{$detail.factory_price}}</td>
                 <td>{{$detail.factory_num}}/{{$detail.total_num}}</td>
                <td>{{$detail.factory_num-$detail.total_num}} / {{$detail.factory_price-$detail.total_price}}</td>
                <td>{{$detail.total_price}}</td>
                <td>{{$detail.createtime|substr:0:16}}</td>
                <td>{{$detail.creator}}</td>
                <td><a href="/factory/ajaxbutton?op=sendGoodsCheckDetail&id={{$detail.id}}" target="_blank">查看详细</a>  <a href="/factory/ajaxbutton?op=delReciveCheckInfo&infoid={{$detail.id}}" onClick="return confirm('确定删除吗？');">删除</a></td>
               </tr>
              {{/foreach}}
          </table>
          
        <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
      </div></div>
</body>
</html>